package com.zxw.common.core.base.entity;

import cn.hutool.extra.mail.MailAccount;

/**
 * @author Xuewei.Zhang
 * @date 2022/11/24
 */
public class MailAccountSon extends MailAccount {

    public MailAccountSon(String host, Integer port, Boolean auth, String from, String user, String pass,Boolean sslEnable) {
        super.setHost(host);
        super.setPort(port);
        super.setAuth(auth);
        super.setFrom(from);
        super.setUser(user);
        super.setPass(pass);
        super.setSslEnable(sslEnable);
    }

    public MailAccountSon(String host, Integer port, Boolean auth, String from, String pass,Boolean sslEnable) {
        super.setHost(host);
        super.setPort(port);
        super.setAuth(auth);
        super.setFrom(from);
        super.setPass(pass);
        super.setSslEnable(sslEnable);
    }

    public MailAccountSon(String from, String pass,Boolean sslEnable) {
        super.setFrom(from);
        super.setPass(pass);
        super.setSslEnable(sslEnable);
    }
}
